package com.zenithmind.version;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 版本控制服务启动类 - 遵循单一职责原则，专门负责应用程序启动
 *
 * @author ZenithMind Team
 * @since 2025-01-09
 */
@Slf4j
@SpringBootApplication(scanBasePackages = {"com.zenithmind.version", "com.zenithmind.common"})
@EnableDiscoveryClient
public class VersionServiceApplication {

    /**
     * 应用程序入口点
     *
     * @param args 命令行参数
     */
    public static void main(String[] args) {
        try {
            SpringApplication.run(VersionServiceApplication.class, args);
            log.info("版本控制服务启动成功！");
        } catch (Exception e) {
            log.error("版本控制服务启动失败: {}", e.getMessage(), e);
            System.exit(1);
        }
    }
}
